package com.server.store.rule;

import java.util.ArrayList;
import java.util.List;
import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.ObjectifyService;
import com.googlecode.objectify.Query;
import com.server.store.data.DataManager;



/**
 * DAO de gestion des {@link DmAsXml}
 * @author queyroi
 *
 */
public class XmlStoreManager extends DataManager<DmAsXml> {
	
	static{
		ObjectifyService.register(DmAsXml.class);		
	}
	
		
	public List<DmAsXml> getList(){
		List<DmAsXml> listReturn = new ArrayList<DmAsXml>();
		Objectify ofy = ObjectifyService.begin();
		Query<DmAsXml> query = ofy.query(DmAsXml.class);
		for(DmAsXml a : query){
			listReturn.add(a);
		}
		return listReturn;
	}
}
